package projectmanagement.util;

import javax.servlet.http.HttpServletRequest;

public class ApplicationSecurityManager {
	public static final String USER = "user";

	public Object getPerson(HttpServletRequest request) {
		return request.getSession(true).getAttribute(USER);
	}

	public void setPerson(HttpServletRequest request, Object person) {
		request.getSession(true).setAttribute(USER, person);
	}

	public void removeRerson(HttpServletRequest request) {
		request.getSession(true).removeAttribute(USER);
	}
}
